<include file="Public:header" />
    <table class="table table-bordered table-hover definewidth m10">
        <tr>
            <td width="10%" class="tableleft">合同编号</td>
            <td>{$contract.contract_id}</td>
        </tr>
        <tr>
            <td class="tableleft">企业名称</td>
            <td>{$contract.company_name}</td>
        </tr>
        <tr>
            <td class="tableleft">合同金额</td>
            <td>￥{$contract.amount}</td>
        </tr>

        <tr>
            <td class="tableleft">合同签订时间</td>
            <td>{$contract.make_time}</td>
        </tr>
        <tr>
            <td class="tableleft">合同截止时间</td>
            <td>{$contract.end_time}</td>
        </tr>
        <tr>
            <td class="tableleft">合同内容</td>
            <td>{$contract.content}</td>
        </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="button" class="btn btn-primary" type="button" id="edit-company">修改</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
            </td>
        </tr>
    </table>

<script>
    $(function () {
        $('#backid').click(function(){
            window.location.href="{:U('Contract/Index')}";
        });
        $('#edit-company').click(function(){
            window.location.href="{:U('Contract/edit',array('cid'=>$contract['contract_id']))}";
        });


    });
</script>

<include file="Public:footer" />